﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.IMessageServices
{
    /// <summary>
    /// 消息 生产者接口定义
    /// </summary>
    public interface IMessageProducer:IDisposable
    {
        void Publish<T>(T messageBody);

        void Publish<T>(IMessage<T>message);
    }
}
